namespace BM.Tools.WebControls.MForm.Navigation.XPath.Predicates
{
    /// <summary>
    /// A custom predicate (not conforming to the XPath specification) that checks if the name of the node matches the specified name
    /// in standard xpath this would look like this: "...[local-name() = 'someName']"
    /// in this implementation it looks like this "...[someName]"
    /// </summary>
    public class NamePredicate : Predicate
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NamePredicate"/> class. 
        /// </summary>
        /// <param name="name">
        /// The name to be tested with.
        /// </param>
        public NamePredicate(string name)
        {
            Name = name;
        }

        /// <summary>
        /// Gets or sets Name.
        /// </summary>
        /// <value>
        /// The name of the item.
        /// </value>
        public string Name
        {
            get;
            set;
        }
    }
}